package com.ruoyi.cloud.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 冷链车数据对象 tb_cloud_car
 * 
 * @author ruoyi
 * @date 2023-11-29
 */
@TableName(value = "tb_cloud_car")
public class TbCloudCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 车辆名称 */
    @Excel(name = "车辆名称")
    private String name;

    /** 运输货物 */
    @Excel(name = "运输货物")
    private String cargo;

    /** 司机姓名 */
    @Excel(name = "司机姓名")
    private String driverName;

    /** 运输费用 */
    @Excel(name = "运输费用")
    private BigDecimal money;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCargo(String cargo) 
    {
        this.cargo = cargo;
    }

    public String getCargo() 
    {
        return cargo;
    }
    public void setDriverName(String driverName) 
    {
        this.driverName = driverName;
    }

    public String getDriverName() 
    {
        return driverName;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("cargo", getCargo())
            .append("driverName", getDriverName())
            .append("money", getMoney())
            .toString();
    }
}
